import { useParams, useSearchParams } from "react-router-dom"


const Article = () => {

    // const [params] = useSearchParams()
    // const id = params.get('id')
    // const name = params.get('name')


    const params = useParams()
    const id = params.id

    return (
        <div>
            <div>Article id {id}</div>
            {/* <div>User name {name}</div> */}
        </div>
    )
}

export default Article